import { DEFAULT_LAYOUT,REPORT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const FORM: AppRouteRecordRaw = {
  path: '/settings',
  name: 'settings',
  component: REPORT_LAYOUT,
  meta: {
    locale: '系统管理',
    icon: 'icon-settings',
    requiresAuth: true,
    order: 14,
  },
  children: [
    {
      path: 'remindList',
      name: 'remindList',
      component: () => import('@/views/setting/remindList.vue'),
      meta: {
        locale: '提醒清单',
        requiresAuth: true,
        roles: ['admin'],
      },
    },
    {
      path: 'userList',
      name: 'userList',
      component: () => import('@/views/setting/userList.vue'),
      meta: {
        locale: '用户管理',
        requiresAuth: true,
        roles: ['admin'],
      },
    },
    {
      path: 'userInfo',
      name: 'userInfo',
      component: () => import('@/views/user/info/index.vue'),
      meta: {
        locale: '个人中心',
        requiresAuth: true,
        roles: ['admin'],
      },
    },
  ],
};

export default FORM;
